// vars/PrintMes.groovy
def call(String value, String color) {
    def colors = [
        'red'    : "\033[40;31m >>>>>>>>>>>${value}<<<<<<<<<<< \033[0m",
        'green'  : "\033[40;32m >>>>>>>>>>>${value}<<<<<<<<<<< \033[0m",
        'purple' : "\033[40;35m >>>>>>>>>>>${value}<<<<<<<<<<< \033[0m",
        'yellow' : "\033[40;33m >>>>>>>>>>>${value}<<<<<<<<<<< \033[0m"
    ]
    ansiColor('xterm') {
        echo colors[color]
    }
}